﻿@using GTAuto.DAL.Entities
@model List<GTAuto.DAL.Entities.GTModel>
@{
    GTBrand curBrand = ViewBag.Brand;
    GTModel curModel =   ViewBag.CurModel;
    
}
<div id="prodaja">
    <div class="prodaja_title">
       @* <div class="menu_button">
            <div class="menu_button_1 @ViewBag.All" onclick="document.location='@Url.Action("TireByBrand", "Tires", new { @id = curBrand.Id })'">
                Все</div>
            <div class="menu_button_1 @ViewBag.Winter" onclick="document.location='@Url.Action("TireByBrand", "Tires", new { @id = curBrand.Id,ses=1 })'">
                Зима</div>
            <div class="menu_button_2 @ViewBag.Summer" onclick="document.location='@Url.Action("TireByBrand", "Tires", new { @id = curBrand.Id, ses = 2 })'">
                Лето</div>
        </div>*@
    </div>
    <div class="left_menu_modeli">
        <ul class="ul_1">
            @foreach (var mdl in Model)
            {
                if (curModel != null && curModel.Id == mdl.Id)
                {

                    <li class="active"><a href=@Url.Action("DiscByModel", "Discs", new { @id = mdl.Id })><span>@mdl.Name</span> </a></li>
                }
                else
                {
                    <li><a href=@Url.Action("DiscByModel", "Discs", new { @id = mdl.Id })><span>@mdl.Name</span> </a></li>
                }
            }
        </ul>
        <div class="clear">
        </div>
    </div>
</div>
